package map.tools.plateform;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;

import uimigration.WidgetsModel.APIModel;

/** My finder */
public class QueryJavaFinder implements IJavaModelQuery<EObject, Object> {
	public Object evaluate(final EObject context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		APIModel api= (APIModel) context;
		String name=(String) parameterValues.getValueByParameterName("WidgetName");
		return api.findWidget(name);
	}
}
